/* 
 * File:   RadianParameterCommand.h
 * Author: Gab'z
 *
 * Created on 6 juin 2012, 03:47
 */

#ifndef RADIANPARAMETERCOMMAND_H
#define	RADIANPARAMETERCOMMAND_H

#include "ParametersCommand.h"

namespace calculator {

    class RadianParameterCommand : public ParametersCommand {
        friend class CommandMap;

    public:
        virtual RadianParameterCommand* clone() const;

        void apply(Parameters* parameters) const;
        virtual ~RadianParameterCommand();
        const Memento* createMemento() const throw (CommandException);
        void restoreFromMemento(const Memento* memento) const throw (MementoException);
        
    protected:
        RadianParameterCommand(const std::string name);
        RadianParameterCommand(const RadianParameterCommand& orig);
    };

}

#endif	/* RADIANPARAMETERCOMMAND_H */

